<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function fn() {
            let count = 0
            function fu() {
                count++
                console.log(`函数被调用了${count}次`)
            }
            return fu
        }
        const fun = fn()
        fun()
        fun()
        count = 1000
        console.log(count)
        fun()
    </script>
</body>

</html>